
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

//与三消有关的所有数据，作为ResovleEngine的操作目标
//与三消有关的子数据用partial定义在这之下
public partial class FieldModel
{
  public struct Param
  {
    public Vector2Int size;
  }

  private Param m_param;
  private GridModel m_gridModel;
  private MatchResolveContext m_matchResolveContext;

  public Param param => m_param;
  public GridModel gridModel => m_gridModel;
  public MatchResolveContext matchResolveContext =>　m_matchResolveContext;

  public void Init(Param param) {
    m_param = param;
    m_gridModel = new GridModel(param.size);
    m_matchResolveContext = new MatchResolveContext();
  }

}
